<%@ page language="java" pageEncoding="UTF8"%>
<jsp:directive.page import="org.insia.smartposse.metier.Project"/>
<jsp:directive.page import="org.insia.smartposse.metier.User" />

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> 

<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>


<div id="welcome">
	<div class="d0">
		<logic:greaterThan name="projects" value="0">
			<p class="legend"><bean:message bundle="inter" key="dashboard.project.caption" /></p>
		</logic:greaterThan>
		<ul>
			<li>
				<html:link action="/createProject"><bean:message bundle="inter" key="dashboard.project.add" /></html:link>
			</li>
		</ul><br />

		<logic:present name="projects">
			<div class="display">
			  <display:table id="row" name="projects" export="true" requestURI="/dashboard.do" decorator="org.insia.smartposse.displaytag.Wrapper">
				<display:column property="title" titleKey="dashboard.project.title" sortable="true" />
				<display:column property="start_date" titleKey="dashboard.project.startdate" sortable="true"/>
				<display:column property="budget" titleKey="dashboard.project.budget" />
				<display:column property="description" titleKey="dashboard.project.description" escapeXml="true" />
				<display:column property="linkActionDashboardProject" autolink="true" title="Options" media="html" />
			  </display:table>
			</div>
		</logic:present>
	</div>
</div>